import request from '@/utils/request'

// 查询投票记录管理列表
export function listVoteRecord(query) {
  return request({
    url: '/voteRecord/voteRecord/list',
    method: 'get',
    params: query
  })
}

// 查询投票记录管理详细
export function getVoteRecord(voteRecordId) {
  return request({
    url: '/voteRecord/voteRecord/' + voteRecordId,
    method: 'get'
  })
}

// 新增投票记录管理
export function addVoteRecord(data) {
  return request({
    url: '/voteRecord/voteRecord',
    method: 'post',
    data: data
  })
}

// 修改投票记录管理
export function updateVoteRecord(data) {
  return request({
    url: '/voteRecord/voteRecord',
    method: 'put',
    data: data
  })
}

// 删除投票记录管理
export function delVoteRecord(voteRecordId) {
  return request({
    url: '/voteRecord/voteRecord/' + voteRecordId,
    method: 'delete'
  })
}
